package com.leetao.ifkiller.domain;

import java.util.function.Consumer;

/**
 * 消费器专业版
 *
 * @author 菅江晖
 * @date 2021/6/11 - 0:39
 */
public class ConsumerPro<T> {

    private String description;

    private Consumer<T> consumer;

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public ConsumerPro<T> description(String description) {
        this.description = description;
        return this;
    }

    public Consumer<T> getConsumer() {
        return consumer;
    }

    public void setConsumer(Consumer<T> consumer) {
        this.consumer = consumer;
    }

    public ConsumerPro<T> consumer(Consumer<T> consumer) {
        this.consumer = consumer;
        return this;
    }

    public static <T> ConsumerPro<T> create() {
        return new ConsumerPro<>();
    }
}
